package com.moli.iov.manager.model.dto;

import com.moli.iov.manager.ManagerConstant;
import com.moli.iov.manager.enums.DictTypeTag;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName DictParam
 * @Description TODO
 * @Author 李伟松
 * @CreateDate 2019-06-28 下午 4:50
 * @UpdateDate 2019-06-28 下午 4:50
 * @Version 1.0
 */
@Data
public class DictParam implements Serializable {

    private List<String> types;

    public DictParam(){
        types = new ArrayList<>();
    }

    public DictParam addParam(DictTypeTag tag){
        if(tag!=null){
            types.add(tag.getType());
        }
        return this;
    }

    public List<String> get(){
        return types;
    }

}
